﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHShenQingXX_BHQS.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHShenQingXX_BHQS" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<style type="text/css">
    td {
        white-space:nowrap
    }
</style>
<script type="text/javascript">
   
    function YONGHUH_LostFocus() {
        //debugger;        
        if (UCLHShenQingXX_BH_txtYongHuH.GetText().length == 7) {
            UCLHShenQingXX_BH_ASPxCallback1.PerformCallback();
        }
        else {
            UCLHShenQingXX_BH_txtHeTongH.SetText("");
        }        
    }

    function UCLHShenQingXX_BH_CallbackCommonComplete(rs) {
        //debugger;
        var arr = rs.split('|');
        var type = arr[0];
        var state = arr[1];
        if (state != "0") {
            alert(arr[2]);
            UCLHShenQingXX_BH_txtHeTongH.SetText("");
        }
        else {
            UCLHShenQingXX_BH_txtHeTongH.SetText(arr[2]);
        }
    }
</script>

<dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="UCLHShenQingXX_BH_hdCollection" runat="server"></dx:ASPxHiddenField> 
                <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="UCLHShenQingXX_BH_ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){UCLHShenQingXX_BH_CallbackCommonComplete(e.result);}"></dx:ASPxCallback>

<div style="width:98%; margin:auto;">
    <table runat="server" id="tabTopInfo">
    <tr>
        <td align="right" style="white-space: nowrap;">受理日期：</td>
        <td>
            <table>
                <tr>
                    <td style="width: 100px;">
                        <dx:ASPxTextBox ID="txtShouLiRQ" runat="server" Width="100px"></dx:ASPxTextBox>
                    </td>
                    <td align="right" style="width: 1%; white-space: nowrap;">&nbsp; 业务员：
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtYeWuY" runat="server" Width="80px"></dx:ASPxTextBox>
                    </td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<dx:ASPxGridView ID="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
    <Columns>
        <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="20%">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="40%">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="地址" Width="40%">
        </dx:GridViewDataTextColumn>
        <%--<dx:GridViewDataTextColumn Width="75px">
            <DataItemTemplate>
                <a href="#" onclick='openShuiBiaoXX(<%#Eval("S_YONGHUH")%>)'>水表信息</a>
            </DataItemTemplate>
        </dx:GridViewDataTextColumn>--%>
        <dx:GridViewDataTextColumn Width="35px">
            <DataItemTemplate>
                <asp:LinkButton ID="lnbDel" runat="server" CausesValidation="false" Text="删除"
                    CommandArgument='<%#Eval("S_YONGHUH")%>' OnCommand="lnbDel_Command"></asp:LinkButton>
            </DataItemTemplate>
        </dx:GridViewDataTextColumn>
    </Columns>
    <Settings VerticalScrollableHeight="100" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
</dx:ASPxGridView>
    </div>
<div id="tabUserInfo" runat="server">
<fieldset style="width: 80%; margin: auto;">
    <table style="width:100%">
       <tr>
        <td style="text-align: right">用户号：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtYongHuH" ClientInstanceName="UCLHShenQingXX_BH_txtYongHuH" runat="server" Width="100%" ClientSideEvents-LostFocus="function(s,e){YONGHUH_LostFocus();}">
                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(UCLHShenQingXX_BH_txtYongHuM);}" />
            </dx:ASPxTextBox>
        </td>
        <td style="text-align: right">
        </td>
        <td></td>
    </tr>
        <tr>
            <td style="text-align: right">用户名：
            </td>            
            <td colspan="3">
                <dx:ASPxTextBox ID="txtYongHuM" ClientInstanceName="UCLHShenQingXX_BH_txtYongHuM" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr runat="server" id="trYHZGBM">
            <td style="text-align: right">主管部门：
            </td>            
            <td colspan="3">
                <dx:ASPxComboBox ID="cmbZhuGuanBM" runat="server" ValueType="System.String" Width="100%">
                    </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">水价：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYSJ" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
            <td style="text-align: right">
                业务员：
            </td>
            <td>
                 <dx:ASPxComboBox ID="cmbYWY" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">行政区：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbXingZhengQ" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
            <td style="text-align: right">
                环线标记：
            </td>
            <td>
                 <dx:ASPxComboBox ID="cmbHuanXianBJ" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">取水用途：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbQuShuiYT" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
            <td style="text-align: right">
                行业分类：
            </td>
            <td>
                 <dx:ASPxComboBox ID="cmbHangYeLX" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">流域：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbLiuYu" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
            <td style="text-align: right">
                水利分片：
            </td>
            <td>
                 <dx:ASPxComboBox ID="cmbShuiLiFP" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">水资源分区：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbShuiZiYFQ" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
            <td style="text-align: right">
                装表计量：
            </td>
            <td>
                 <dx:ASPxComboBox ID="cmbZhuangBiaoJL" runat="server" ValueType="System.String" Width="100%">
                     <Items>
                         <dx:ListEditItem Text="是" Value="1" />
                         <dx:ListEditItem Text="否" Value="0" />
                     </Items>
                 </dx:ASPxComboBox>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset style="width: 80%; margin: auto;">
    <table style="width:100%">
        <tr>
            <td style="text-align: right">联系人：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtLianXiR" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
            <td style="text-align: right">
                联系部门：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtLianXiBM" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">邮编：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYouBian" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
            <td style="text-align: right">
                联系电话：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtLianXiDH" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">地址：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtDiZhi" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">财务户名：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtCaiWuHM" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">财务地址：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtCaiWuDZ" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">财务邮编：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtCaiWuYB" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        </table>
    </fieldset>
<fieldset style="width: 80%; margin: auto;">
    <table style="width:100%">
         <tr>
        <td style="text-align: right">开户户名：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtKaiHuM" runat="server" Width="100%"></dx:ASPxTextBox>
        </td>
        <td style="text-align: right">开户银行：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtKaiHuYH" runat="server" Width="100%"></dx:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td style="text-align: right">银行账号：
        </td>
        <td colspan="2">
            <dx:ASPxTextBox ID="txtKaiHuZH" runat="server" Width="100%"></dx:ASPxTextBox>
        </td>
        <td>
            <dx:ASPxCheckBox ID="cbTuoShou" runat="server" Text="托收"></dx:ASPxCheckBox>
        </td>
    </tr>
    <tr>
        <td style="text-align: right">合同号：
        </td>
        <td colspan="3">
            <dx:ASPxTextBox ID="txtHeTongH" ClientInstanceName="UCLHShenQingXX_BH_txtHeTongH" runat="server" Width="100%"></dx:ASPxTextBox>
        </td>
    </tr>
        </table>
    </fieldset>
    </div>